import httpRequest from "@/services";
export function getLabelList(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/label/list",
    method: "get",
    params: {
      ...params,
      start_no: 1,
    },
  });
}

export function addLabel(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/label",
    method: "post",
    params: {
      ...params,
    },
  });
}

export function editLabel(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/label",
    method: "put",
    params: {
      ...params,
    },
  });
}

export function deleteLabel(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/label/" + params,
    method: "delete",
    params: {
      ...params,
    },
  });
}

export function getPersonList(params) {
  return httpRequest({
    url: window.config.apiHost + "/business/person/all",
    method: "post",
    params: {
      ...params,
    },
  });
}
